const { cmd } = require('./common')
const path = require('path')
// 获取项目跟路径
const pre_weapp_url = path.join(__dirname, '../../automation/static/iconfont-weapp/iconfont-weapp-icon.css')
const next_weapp_url = path.join(__dirname, '../../src/static/iconfont-weapp-icon.css')
const pre_icon_url = path.join(__dirname, '../../automation/static/iconfont.css')
const next_icon_url = path.join(__dirname, '../../src/static/iconfont.css')
async function runIconBuild() {
  console.log('正在迁移icon文件...')
  await cmd(`copy ${pre_weapp_url} ${next_weapp_url}`)
  await cmd(`copy ${pre_icon_url} ${next_icon_url}`)
  console.log('迁移成功')
}
runIconBuild()
